{extend name="public/base" /}

{block name="title"}<title>列表</title>{/block}

{block name="pjax_container"}
<style>
    tr>th,
    td {
        text-align: center;
    }
   .btn-group-xs>.btn, .btn-xs{
       padding: 5px;
   }

   
.content-header>.breadcrumb>li{
    color: #999;
}
.content-header>.breadcrumb>.active{
    color: #666;
}
.content-header{
    height: 51px;

}
.box-primary{
  border-top-color: #ecf0f5 !important;
  border-top-width: 16px;
  
}
input{
    margin-right: 20px !important;
}
.select2{
    margin-right: 20px !important;
}
.btn-primary{
    background-color: #1890FF;
    color: #fff;
    border: none;
    border-radius: 6px !important;
    margin-right: 10px;
    padding: 7px 12px;
}
.btn-primary:hover{
     background-color: #1890FF;
    color: #fff;
    border: none;
    opacity: .9;
    border-radius: 6px !important; 
}
.delete-one{
    margin-right: 10px;
    border-radius: 6px;
}
</style>
<section class="content-header">
    <ol class="breadcrumb">
        <li>系统管理</li>
        <li class="active"> 管理员列表</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <div class="pull-left">
                        <a href="{:url('create')}" class="btn btn-primary"><i class="fa fa-save"></i> 新增</a>
    
                    </div>
                </div>
                <div style="margin-left: 12px; ">
                    {include file="form_search/search"/}
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <!--<th>ID{:table_sort("id")}</th>-->
                            <th>头像</th>
                            <th>姓名</th>
                            <th>状态</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        {volist name="list" id="v"}
                        <tr>
                            <!--<td>{$v["id"]}</td>-->
                            <td><img width="40" height="40" src="{:getImageUrl($v['avatar'])??'/static/avatar.jpg'}"></td>
                            <td>{$v["name"]}</td>
                            <td><?php echo app\company\model\Users::$status_list[$v["status"]]; ?></td>
                            <td>{:date('Y-m-d H:i',$v["c_time"])}</td>
                            <td>
                                {if condition="$v.role_id"}
                                {:authAction(CONTROLLER_NAME.'/edit','edit',['id'=>$v['id']])}
                                <!--//{:authAction(CONTROLLER_NAME.'/delete','delete_one',['id'=>$v['id']])}-->
                                {/if}
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                    {$list->render()}
                </div>
            </div>
        </div>
    </div>
</section>
{/block}
